VERSE 1:
We bring our time, we bring our treasure,
we lay them down before Your throne.
You will make them something greater,
more than we could ever know. (chorus)
VERSE 2:
We bring our gifts, we bring our power
place them in Your sov’reign hand.
You will take what we have given,
You will use it for Your plan. (chorus)
CHORUS:
Glory be to God, the Maker
glory be to God, Creator
Take our time, use our treasure
turn them into something greater:
Glory be to God, the Maker.
VERSE 3:
Though our hearts are weak from failure,
broken dreams and failed attempts,
show us that in ev’ry season,
You will fill our emptiness. (chorus)
(God the Maker, The Porter’s Gate)
| Operation | Operator | Example | Evaluates to |
|---|---|---|---|
| Addition | + |
2 + 2 |
4 |
| Subtraction | - |
4 - 1 |
3 |
| Multiplication | * |
1.5 * 2 |
3.0 |
| Division | / |
5 / 2 |
2.5 |
| Floor Division | // |
5 // 2 |
2 |
| Modulus (remainder of division) | % |
5 % 2 |
1 |
| Exponent | ** |
3**3 |
27 |
If any of the operands is a float, result will be a float. Otherwise (both are integer), result is an integer.
However, there is an exception: result of a division (not floor division) is always a float. Careful with that! (why? we’ll see in a moment)
Python operator precedence order:
()*** / // %+ -<= < >= > == != is (next week)not (next week)and (next week)or (next week)| String Operation | Metaphor | Operator | Example | Evaluates to |
|---|---|---|---|---|
| Concatenation | Addition | + |
"Hey" + " " + "apple" |
"Hey apple" |
| Repetition | Multiplication | * |
"na" * 4 |
"nananana" |
It is also possible to evaluate an expression coded as a string. For example:
For other mathematical operations, you can import Python’s math module. Two ways to do that:
Some functions in the math module (documentation here)
| Method | Explanation |
|---|---|
| math.cos(x) | Returns cosine of x (rads) |
| math.sin(x) | Returns sine of x (rads) |
| math.tan(x) | Returns tangent of x (rads) |
| math.degrees(x) | Converts x radians to degrees |
| math.radians(x) | Converts x degrees to rads |
| math.sqrt(x) | Returns square root of x |
2147483647 ** 2002.0**2000
OverflowError